using System;
using System.Collections.Generic;
using System.Text;

namespace HREngine.Bots
{
	class Sim_SCH_242 : SimTemplate //* 聒噪怪 Gibberling
	{
		//<b>Spellburst:</b> Summon a Gibberling.
		//<b>法术迸发：</b>召唤一个聒噪怪。
		CardDB.Card kid = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.SCH_242);
		public override void onCardIsGoingToBePlayed(Playfield p, Handmanager.Handcard hc, bool ownplay, Minion m)
		{
			if (m.own == ownplay && m.Spellburst && hc.card.type == CardDB.cardtype.SPELL)
			{
				m.Spellburst = false;
				p.callKid(kid, p.owncards.Count, ownplay);
				p.evaluatePenality -= 20;
			}
		}

	}
}
